<template>
	<Row :gutter="16">
		<ICol span="6"><IInput  placeholder="模版内容" v-model="param.content" ></IInput></ICol>
        <ICol span="3">
            <ISelect v-model="param.config_id" placeholder="请选择服务商">
                <IOption v-for="config_id in config_ids" :value="config_id.id" :key="config_id.id">{{config_id.desc}}</IOption>
            </ISelect>
        </ICol>
        <ICol span="3">
            <ISelect v-model="param.module" placeholder="请选择短信模块">
                <IOption v-for="module in modules" :value="module.value" :key="module.value">{{module.name}}</IOption>
            </ISelect>
        </ICol>
		<ICol span="5" ><IButton type="primary" @click="search">搜索</IButton></ICol>
	</Row>
</template>
<script>
	import {Row,Col} from 'iview/src/components/grid';
	import Input from 'iview/src/components/input';
	import Button from 'iview/src/components/button';
    import { Select, Option, OptionGroup } from 'iview/src/components/select';

	export default{
		components:{
			Row,
            'ICol':Col,
            'IInput' : Input,
            'IButton' : Button,
            'ISelect' : Select,
            'IOption' : Option,
        },
        data () {
            return {
            	param :{
            		content : '',
                    config_id : 0,
                    module : '',
            	},
                config_ids : [],
                modules : [],
            }
        },
        methods: {
        	search(){
        		this.$emit('resetTable',this.param);
        	}
        }

	}
</script>